﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class ChucNang_Admin_Admin_ThongKe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnXemThongKe_Click(object sender, EventArgs e)
    {
        if(rdThang.Checked)
        {
            if (rdBanHang.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuTheoThang.aspx");
            if(rdBanHangSanPham.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuSanPhamTheoThang.aspx");
            if(rdDoiTac.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuDoiTacTheoThang.aspx");
            if(rdKhachHang.Checked)
                Response.Redirect("Admin_ThongKeMuaHangKhachHangTheoThang.aspx");
            if(rdKhuyenMai.Checked)
                Response.Redirect("Admin_ThongKeKhuyenMaiSanPhamTheoThang.aspx");
        }
        else if(rdQuy.Checked)
        {
            if (rdBanHang.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuTheoQuy.aspx");
            if (rdBanHangSanPham.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuSanPhamTheoQuy.aspx");
            if (rdDoiTac.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuDoiTacTheoQuy.aspx");
            if (rdKhachHang.Checked)
                Response.Redirect("Admin_ThongKeMuaHangKhachHangTheoQuy.aspx");
            if (rdKhuyenMai.Checked)
                Response.Redirect("Admin_ThongKeKhuyenMaiSanPhamTheoQuy.aspx");
        }
        else
        {
            if (rdBanHang.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuTheoNam.aspx");
            if (rdBanHangSanPham.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuSanPhamTheoNam.aspx");
            if (rdDoiTac.Checked)
                Response.Redirect("Admin_ThongKeDoanhThuDoiTacTheoNam.aspx");
            if (rdKhachHang.Checked)
                Response.Redirect("Admin_ThongKeMuaHangKhachHangTheoNam.aspx");
            if (rdKhuyenMai.Checked)
                Response.Redirect("Admin_ThongKeKhuyenMaiSanPhamTheoNam.aspx");
        }
    }
}
